<h1>New relation</h1>

<%= error_messages_for :relation %>

<% form_for(:relation, :url => relations_path) do |f| %>
  <p>
    <b>Type</b><br />
    <%= f.text_field :type %>
  </p>

  <p>
    <b>Object</b><br />
    <%= f.text_field :object_id %>
  </p>

  <p>
    <b>Subject</b><br />
    <%= f.text_field :subject_id %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.datetime_select :created_at %>
  </p>

  <p>
    <b>Updated at</b><br />
    <%= f.datetime_select :updated_at %>
  </p>

  <p>
    <b>Deleted at</b><br />
    <%= f.datetime_select :deleted_at %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', relations_path %>